package guoanmaker.operator.business.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
@Entity
@Table(name="t_provide_business_server_range")
public class ProviderBusinessServerRange extends IdEntity {
	private Date create_time;
	
	private String old_commoditys;//变更前服务范围
	
	private String del_commoditys;//取消的服务范围
	
	private String ins_commoditys;//新增的服务范围
	
	private String new_commoditys;//最新的经营范围
	
	@Transient
	private String spare_commoditys;//剩下的服务范围
	
	@Transient
	private Integer serverState;//是否新增服务 1:未新增 2:新增
	
	@OneToOne
	@JoinColumn(name="business_id")
	private ProviderBusiness business;

	public ProviderBusinessServerRange(Date create_time, String old_commoditys, String del_commoditys,
			String ins_commoditys, String new_commoditys, String spare_commoditys, Integer serverState) {
		super();
		this.create_time = create_time;
		this.old_commoditys = old_commoditys;
		this.del_commoditys = del_commoditys;
		this.ins_commoditys = ins_commoditys;
		this.new_commoditys = new_commoditys;
		this.spare_commoditys = spare_commoditys;
		this.serverState = serverState;
	}
	
	
	
	
}
